package 设计模式.chainofres;

/**
 * @功能
 * @创建时间 2020/5/4
 */
public abstract class Leader {
    protected String name;
    protected Leader nextLeader;

    public Leader(String name) {
        this.name = name;
    }

    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;
    }
    //处理请求的核心业务方法
    public abstract void handleRequest(LeaveRequest request);
}
